--- 
title: "An economic evaluation of eribulin for advanced breast cancer treatment based on the South East Netherlands Advanced Breast Cancer registry - Supplemental material"
author: "Pouwels XGLV ORCID: http://orcid.org/0000-0003-3563-0013, Ramaekers BLT, Geurts SME, Erdkamp F, Vriens BEPJ, Aaldering KNA, van de Wouw AJ, Dercksen MW, Smilde TJ, Peters NAJB, van Riel, Pepels MJ, Heijnen-Mommers J, Tjan-Heijnen VCG, de Boer M, Joore MA"
date: "`r Sys.Date()`"
output: 
  pdf_document:
    includes:
      in_header: preamble.tex
documentclass: book
bibliography: [packages.bib, references.bib]
biblio-style: apalike
link-citations: yes
github-repo: rstudio/bookdown-demo
header-includes:
- \usepackage{float}
- \usepackage{setspace}\onehalfspacing
- \usepackage[margin=1in]{geometry}
site: bookdown::bookdown_site
---

# Preface
This bookdown document is an extensive explanation of the cost-effectiveness model underlying the results described in the manuscript. This supplemental material document has been realised using the R package *bookdown* [@R-bookdown] and is inspired by the publication of the DARTH working group [@Alarid-Escudero2019]. Before explaining the different elements of the model, different terms that are used in the following documents are explained.  

## Glossary {#glossary}
The *expected value of perfect information* (EVPI) is the opportunity costs caused by the uncertainty surrounding the decision (= the probability of a making a 'wrong' decision times the costs of making a 'wrong' decision) [@Wilson2014]. In the context of cost-effectiveness analysis, a 'wrong' decision means reimbursing a cost-ineffective treatment.  
The *monetary losses* associated with reimbursing a cost-ineffective treatment are the costs of reimbursing such a treatment. This is the difference in net (monetary) benefit between the cost-effective treatment and the cost-ineffective treatment [@Grimm2017].  
The *net monetary benefit (NMB) of a treatment* is the value of an intervention in monetary terms. For this calculation, the health benefits obtained with a treatment are converted to a monetary value by dividing the health benefits by the willingness-to-pay threshold. The calculation is as follows: $NMB = E_{i}/WTP - C_{i}$; where $E_{i}$ is the total number of quality-adjusted life years (QALY) obtained with treatment *i*, $WTP$ is the willingness-to-pay threshold (the monetary value of a QALY, i.e. &euro;80,000 per QALY in our analyses) and $C_{i}$ is the total cost of using treatment *i*.

## Functions
All functions presented in the current document are annotated in the `R` folder.

```{r setup0, echo = FALSE, message = FALSE, warning=FALSE}
knitr::opts_chunk$set(message = FALSE)
.libPaths("H:/R/win-library/3.1") # set library path
library(bookdown)
library(tinytex)
```

```{r include=FALSE}
# automatically create a bib database for R packages
options(tinytex.verbose = TRUE)

knitr::write_bib(c(
  .packages(), 'bookdown', 'knitr', 'rmarkdown', 'dampack'
), 'packages.bib')
```
